<?php
    require_once 'connect.php';
    
    $filter = false;
    if(isset($_POST)) {
        $filter = $_POST['gameName'];
    }
    // connect to mysql database
    connect();
    // get game list
    $countViews= getNumViews($filter);
    // disconnect to mysql database
    disconnect();
    
	echo $countViews;
    ?>